package com.biz.primus.ms.product.feign;

import com.biz.primus.base.vo.ProductSearchResultEntityVo;
import com.biz.primus.search.vo.search.ProductSearchResultVo;
import com.biz.primus.search.vo.search.SearchProductRequestVo;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author defei
 * @date 2017/9/13
 */
@FeignClient(qualifier = "productSearchFeignClient", name = "service-search")
public interface ProductSearchFeignClient {

    @PostMapping(value = "soa/productSearchService/searchProduct")
    ProductSearchResultVo<ProductSearchResultEntityVo> searchProduct(@RequestBody SearchProductRequestVo vo);
}
